/*
 * Copyright (c) 2010. raoqn
 */

package com.yfeng.goodjuhome.service;

import com.yfeng.exception.ServiceException;
import com.yfeng.goodjuhome.model.VisitModel;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * www.goodjuhome.com
 * Created by IntelliJ IDEA.
 * User: rqn
 * Date: 2010-8-14
 * Time: 23:29:08
 */
public interface IVisitService {

    /**
     * 添加访问者
     * @param req
     * @param blog_uid 被访问者的ID
     * @return
     * @throws ServiceException
     */
    public int addVisit(HttpServletRequest req, String uid,String blog_uid) throws ServiceException;

    public int deleteVisit(String[] id) throws ServiceException;

    /**
     * 查询用户访问了哪些blog
     * @param uid
     * @return
     * @throws ServiceException
     */
    public List queryBlogByUid(String uid) throws ServiceException;

    /**
     * 查询该用户的BLOG被哪些用户访问过
     * @param uid
     * @return
     * @throws ServiceException
     */
    public List queryVisitByUid(String uid) throws ServiceException;


    /**
     * 查看某个访问记录的详细信息
     * @param id
     * @return
     * @throws ServiceException
     */
    public VisitModel getVisit(String id) throws ServiceException;
}
